FROM 10.121.138.178:80/lenovo/openjdk:8u191-jdk-alpine3.9-tini-arthas

LABEL author="宗波<zongbo1@lenovo.com>"

# build args
ARG JAR_FILE
ARG PORT

# 时区
ENV TZ=Asia/Shanghai
ENV JAVA_OPTS=""
ENV SPRING_OPTS=""

ADD ${JAR_FILE} /app.jar
# 修改文件修改时间
RUN sh -c 'touch /app.jar'

# 暴露端口
EXPOSE ${PORT}

ENTRYPOINT /sbin/tini java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -Duser.timezone=${TZ} -jar /app.jar ${SPRING_OPTS}
